package com.xxzx.publicprevention;

import com.alibaba.fastjson.JSONObject;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.client.RestTemplate;

import java.nio.charset.StandardCharsets;


@SpringBootApplication
@ServletComponentScan(basePackages = {"com.xxzx"})
@EnableTransactionManagement
@MapperScan(value = "com.xxzx.publicprevention.mapper")
@ComponentScan(basePackages = {"com.xxzx"})
public class PublicPreventionApplication{

    public static void main(String[] args) {
        SpringApplication.run(PublicPreventionApplication.class, args);
    }

//    //为了打包springboot项目
//    @Override
//    protected SpringApplicationBuilder configure(
//            SpringApplicationBuilder builder) {
//        return builder.sources(this.getClass());
//    }
}
